CC = g++

main:main.o snake_move.o snake_eat.o def.o
	$(CC) main.o snake_move.o snake_eat.o def.o -o main

main.o: main.cpp
	$(CC) -c main.cpp -o main.o

snake_move.o:snake_move.cpp
	$(CC) -c snake_move.cpp -o snake_move.o

snake_eat.o:snake_eat.cpp
	$(CC) -c snake_eat.cpp -o snake_eat.o

def.o:def.cpp
	$(CC) -c def.cpp -o def.o

clean:
	rm -rf *.o